package com.darsystems.foghourz.client;

import java.io.Serializable;
import java.util.Date;

public class DailyWork implements Serializable {

	private Date _workDate;
	private Integer _totalTimeSec;
	private String _workingOn;
	/**
	 * 
	 */
	private static final long serialVersionUID = 1045652059290342229L;

	public DailyWork()
	{
		
	}
	
	public DailyWork(Date workDate, int totalTimeSec)
	{
		_workDate = workDate;
		_totalTimeSec = totalTimeSec;
	}
	
	public Date getWorkDate()
	{
		return _workDate;
	}
	
	public double getHoursWorked()
	{
		return (double)_totalTimeSec/3600.0;
	}
	
	public String getWorkingOn()
	{
		return _workingOn;
	}
	
	public void setWorkingOn(String workingOn)
	{
		_workingOn = workingOn;
	}
	
	public void addTime(int workTimeSec)
	{
		_totalTimeSec += workTimeSec;
	}
}
